// OSR b jvcs
package org.jvcs.common;

import org.jvcs.common.*;

import java.io.*;
import java.util.*;
import java.net.*;
import java.nio.*;
import java.nio.channels.*;

public class Global {

	public static String OSR_ADMIN_HUB = ".ADMIN_HUB";
	public static String OSR_CLIENT = ".osr";
	public static String OSR_ADMIN_PROJECT = ".ADMIN_PROJECT";

	public static String indexFileName = "file.index";
	public static String tableFileName = "file.table";
	public static String newProjectFlag = "this.new.project";
	public static String projectFlag = "this.project";
	
	public static String filesDir = "files";
	public static String confDir = "conf";
	public static String rawDir = "raw";
	public static String hubFlag = "this.hub";
	public static String newHubFlag = "this.new.hub";
	
	public static String JVCSNETURL = "jvcs://";
	
	public static final int BUFFER_SIZE = 65536;
	
	public static String checkoutCmdStr = "checkout\n";
	public static String checkinCmdStr = "checkin\n";
	public static String statusCmdStr = "status\n";
	public static String listCmdStr = "list\n";
	public static String saveCmdStr = "save\n";
	public static String rollbackCmdStr = "rollback\n";
	

	public static String fDataDir = "data";
	public static String fViewDir = "view";
	public static String fConfDir = "conf";
	public static String fHooksDir = "hooks";
	public static String fRawDir = "raw";
	public static String fFilesDir = "files";
		
	public static String fMainline = "mainline";
	public static String fBranch = "branch";
	public static String fTag = "tag";
	
	public static String fHubRWCloneLock = "rw.clone.lock";
	public static String fHubRWInitLock = "rw.init.lock";
	public static String fHubRWAdminLock = "rw.admin.lock";
	
	public static String fRWInitLock = "rw.init.lock";
	
	public static String fBaseVer = "v1";
	
	public static String cHubFilesDir = OSR_ADMIN_HUB + "/" + fFilesDir;
	public static String cHubConfDir = OSR_ADMIN_HUB + "/" + fConfDir;
	
	public static String cHubCloneLockFile = OSR_ADMIN_HUB + "/" + fHubRWCloneLock;
	public static String cHubAdminLockFile = OSR_ADMIN_HUB + "/" + fHubRWAdminLock;

	public static String cProjectInitLockFile =   fRWInitLock;
	

}